from .views import *
from django.urls import path
from rest_framework import routers
router = routers.SimpleRouter(trailing_slash=False)
# 用户
router.register(r'users', UsersView, basename='users')
# 菜单栏
router.register(r'menus', MenuView, basename='menus')
# 权限列表
router.register(r'rights', RightsView, basename='rights')
# 展示分类
router.register(r'cate', CategoriesView, basename='cate')
# 进行增删改查分类
router.register(r'cates', CategoriesViews, basename='cates')
# 角色操作
router.register(r'roles', RolesView, basename='roles')
urlpatterns = []
urlpatterns += router.urls